<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作用域查找</title>
</head>
<body>
<script>
    var content = '外部作用域';
    function out(){
        var content = '内部作用域';
        return function() {
            console.log(content)
        }
    }
    console.log(out()()); //
    var f = out();
    console.log(f()); //
</script>
</body>
</html>
